﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example_Interface
{
    interface IA
    {
        void m1();
    }
    interface IB
    {
        void m2();
    }
    public class C:IA,IB
    {
        public void m1()
        {
            Console.WriteLine("interface A");
        }
        public void m2()
        {
            Console.WriteLine("interface B");
        }
        public void m3()
        {
            Console.WriteLine("hello");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            IA a = new C();
            a.m1();
            IB b = new C();
            b.m2();
        }
    }
}
